package example;

import java.util.List;
import java.util.StringTokenizer;
import java.util.ArrayList;

public class Varied {
	
	/*
	public static boolean isPalindrome(String string)
	{
		if(string.length()==0)
			return true;
		int limit = string.length()/2;
		
		for(int forward=0,backward=string.length()-1 ; forward<limit; forward++,backward)
		{
			if(string.charAt(forward) != string.charAt(backward))
				return false;
		}
		return true;
	}
	*/
	
	private List<String> split(String name){
		List<String> results = new ArrayList<String>();
		StringTokenizer tokenizer = new StringTokenizer(name," ");
		while(tokenizer.hasMoreTokens())
			results.add(tokenizer.nextToken());
		return results;
	}
}
